package cn.ym.mall.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 商品
 */
public class Goods implements Serializable {
    /** 商品id */
    private Integer gid;
    /** 商店id */
    private Integer sid;
    /** 品牌id */
    private Integer bid;
    /** 类型id */
    private Integer tid;
    /** 商品名 */
    private String gname;
    /** 商品成本 */
    private Double gcost;
    /** 商品价格 */
    private Double gprice;
    /** 商品卖点 */
    private String gcontent;
    /** 上架时间 */
    private LocalDateTime gputawayDate;
    /** 上架状态 */
    private Integer gputawayState;
    /** 商品库存 */
    private Integer ginventory;
    /** 图片路径 */
    private String gpicturePath;
    /** 审核状态 */
    private Integer gcheckState;
    /** 商品颜色 */
    private String gcolor;
    /** 商品销量 */
    private Integer gsellCount;

    public Goods(){}

    public Goods(Integer gid, Integer sid, Integer bid, Integer tid, String gname, Double gcost, Double gprice, String gcontent, LocalDateTime gputawayDate, Integer gputawayState, Integer ginventory, String gpicturePath, Integer gcheckState, String gcolor, Integer gsellCount) {
        this.gid = gid;
        this.sid = sid;
        this.bid = bid;
        this.tid = tid;
        this.gname = gname;
        this.gcost = gcost;
        this.gprice = gprice;
        this.gcontent = gcontent;
        this.gputawayDate = gputawayDate;
        this.gputawayState = gputawayState;
        this.ginventory = ginventory;
        this.gpicturePath = gpicturePath;
        this.gcheckState = gcheckState;
        this.gcolor = gcolor;
        this.gsellCount = gsellCount;
    }

    public String getGcontent() {
        return gcontent;
    }

    public void setGcontent(String gcontent) {
        this.gcontent = gcontent;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public Integer getBid() {
        return bid;
    }

    public void setBid(Integer bid) {
        this.bid = bid;
    }

    public Integer getTid() {
        return tid;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public Double getGcost() {
        return gcost;
    }

    public void setGcost(Double gcost) {
        this.gcost = gcost;
    }

    public Double getGprice() {
        return gprice;
    }

    public void setGprice(Double gprice) {
        this.gprice = gprice;
    }

    public LocalDateTime getGputawayDate() {
        return gputawayDate;
    }

    public void setGputawayDate(LocalDateTime gputawayDate) {
        this.gputawayDate = gputawayDate;
    }

    public Integer getGputawayState() {
        return gputawayState;
    }

    public void setGputawayState(Integer gputawayState) {
        this.gputawayState = gputawayState;
    }

    public Integer getGinventory() {
        return ginventory;
    }

    public void setGinventory(Integer ginventory) {
        this.ginventory = ginventory;
    }

    public String getGpicturePath() {
        return gpicturePath;
    }

    public void setGpicturePath(String gpicturePath) {
        this.gpicturePath = gpicturePath;
    }

    public Integer getGcheckState() {
        return gcheckState;
    }

    public void setGcheckState(Integer gcheckState) {
        this.gcheckState = gcheckState;
    }

    public String getGcolor() {
        return gcolor;
    }

    public void setGcolor(String gcolor) {
        this.gcolor = gcolor;
    }

    public Integer getGsellCount() {
        return gsellCount;
    }

    public void setGsellCount(Integer gsellCount) {
        this.gsellCount = gsellCount;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "gid=" + gid +
                ", sid=" + sid +
                ", bid=" + bid +
                ", tid=" + tid +
                ", gname='" + gname + '\'' +
                ", gcost=" + gcost +
                ", gprice=" + gprice +
                ", gcontent='" + gcontent + '\'' +
                ", gputawayDate=" + gputawayDate +
                ", gputawayState=" + gputawayState +
                ", ginventory=" + ginventory +
                ", gpicturePath='" + gpicturePath + '\'' +
                ", gcheckState=" + gcheckState +
                ", gcolor='" + gcolor + '\'' +
                ", gsellCount=" + gsellCount +
                '}';
    }
}
